/*
----------------------------------------
    Rodeo Game Engine
	Rodeo Core Module
	Copyright(c) Marcin Goryca
----------------------------------------
*/
#include "core\rendermanager.h"

namespace rodeocore
{

RenderManager::RenderManager(RendererType renderer)
{
    switch(renderer)
    {
    case RODEO_DX:
        {
            renderer_ = new rodeorenderer::DxRenderer;
        }
        break;

    case RODEO_GL:
        {
             renderer_ = new rodeorenderer::GLRenderer;
        }
        break;
    }
}

//...............................//
RenderManager::~RenderManager()
{
    if(renderer_ != NULL)
    {
        delete renderer_;
        renderer_ = NULL;
    }
}
}    // end of rodeocore namespace